<?php

namespace Database\Seeders;

use App\Models\User;
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class DatabaseSeeder extends Seeder
{
    /**
     * Seed the application's database.
     */
    public function run(): void
    {
        // User::factory(10)->create();

//        User::factory()->create([
//            'name' => 'Test User',
//            'email' => 'test@example.com',
//        ]);

        // 运行账本数据填充
        $this->call(UsersTableSeeder::class);
        $this->call(MembershipCodeSeeder::class);
        $this->call(MoneyBooksTableSeeder::class);
        $this->call(MoneyBookUsersTableSeeder::class);
        $this->call(MoneyCategoriesTableSeeder::class);
        $this->call(MoneySubCategoriesTableSeeder::class);
        $this->call(MoneyTransactionsTableSeeder::class);

        // 运行文章数据填充
        $this->call(ArticlesTableSeeder::class);
        $this->call(MembershipProductsTableSeeder::class);
        $this->call(AdminUsersTableSeeder::class);
        $this->call(AdminRolesTableSeeder::class);
        $this->call(AdminRoleUsersTableSeeder::class);
    }
}
